package com.xcity.pomelo.response;

import com.xcity.game.activity.newplayer.NewPlayerTask;
import com.xcity.game.activity.newplayer.NewPlayerTask.State;
import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivityNewPlayerGetRewardResponse extends Response {
	public int rewardDay;//从1开始
	public int rewardActiveIndex;//ID
	public byte state;
	
	public ActivityNewPlayerGetRewardResponse(int serial, NewPlayerTask task) {
		super(serial);
		rewardDay = task.getTemplate().getStartDay();
		rewardActiveIndex = task.getTemplate().getId();
		this.state = 0;
		if(task.getState() == State.DONE){
			this.state = 1;
		}else if(task.getState() == State.GOT){
			this.state = 2;
		}
	}

}
